import React from "react";
import ReactDOM from "react-dom/client";
import { HashRouter } from "react-router-dom";
import { ConfigProvider } from "antd";
import zhCN from "antd/locale/zh_CN";
import App from "@/App";
import store from "./store";
import { Provider } from "react-redux";
import "./style/base.scss";
// 导入网页进度条全局样式，放上面样式可层叠
import "nprogress/nprogress.css";
// 关闭进度条底部的圆圈样式
import nProgress from "nprogress";
nProgress.configure({ showSpinner: false });

const root = ReactDOM.createRoot(document.getElementById("root"));

root.render(
  <HashRouter>
    <ConfigProvider locale={zhCN}>
      <Provider store={store}>
        <App></App>
      </Provider>
    </ConfigProvider>
  </HashRouter>
);
